<template>
    <div class="zichan">
        <ziHead :ishead="ishead" @toggleMode="toggleMode"></ziHead>
        <div class="zicontent">
            <div class="zione">
                <div class="zioneleft">
                    <div class="zleftone">
                        <div class="touview">
                            <div class="touone">
                                <span class="zongtit">投资总额</span>
                                <img src="@/assets/img/addition/yan.png" alt="" class="yan" v-if="iseye" @click="iseye=!iseye" />
                                <img src="@/assets/img/addition/yans.png" alt="" class="yan" v-if="!iseye" @click="iseye=!iseye" />
                            </div>
                            <span class="znum">{{ !iseye?'0.09':'***' }}<span class="znums">USDT</span></span>
                        </div>
                        
                        <div class="zoneright">
                            <span class="shoutit">最日收益：<span class="lv">0.00</span></span>
                            <span class="shoutit">托管订单：<span>0.00</span></span>
                            <span class="shoutit">预计收益：<span>0.00</span></span>

                        </div>
                    </div>
                  
                  
                </div>
            </div>

            <div class="zitwo">
                <div class="zitwotit">
                    <div class="ztwoitems" :class="istou==1?'ztacitve':''" @click="istouClick(1)">
                        <span class="rengou">IEO认购</span>
                        <span class="renxian"></span>
                    </div>
                    <div class="ztwoitems" :class="istou==2?'ztacitve':''" @click="istouClick(2)">
                        <span class="rengou">活期/定期</span>
                        <span class="renxian"></span>
                    </div>
                </div>
                <div class="ztlist" v-if="istou == 1">
                    <div class="zthead">
                        <div class="zones">
                            <span class="rentit">认购时间</span>
                        </div>
                        <div class="zones">
                            <span class="rentit">认购价格</span>
                        </div>
                        <div class="zones">
                            <span class="rentit">币种</span>
                        </div>
                        <div class="zones">
                            <span class="rentit">认购数量</span>
                        </div>
                        <div class="zones end">
                            <span class="rentit">充币状态</span>
                        </div>

                    </div>
                    <div class="zthead ztitems">
                        <div class="zones">
                            <span class="rentit">2023/10/27 0022:59</span>
                        </div>
                        <div class="zones">
                            <span class="rentit">0.01 ABC</span>
                        </div>
                        <div class="zones">
                            <span class="rentit">ABC</span>
                        </div>
                        <div class="zones">
                            <span class="rentit">12.001 ABC</span>
                        </div>
                        <div class="zones end">
                            <span class="rentit">已完成</span>
                        </div>
                    </div>
                    <div class="zthead ztitems">
                        <div class="zones">
                            <span class="rentit">2023/10/27 0022:59</span>
                        </div>
                        <div class="zones">
                            <span class="rentit">0.01 ABC</span>
                        </div>
                        <div class="zones">
                            <span class="rentit">ABC</span>
                        </div>
                        <div class="zones">
                            <span class="rentit">12.001 ABC</span>
                        </div>
                        <div class="zones end">
                            <span class="rentit hong">认购中</span>
                        </div>
                    </div>
                </div>

                <div class="ztlist" v-if="istou == 2">
                    <div class="zthead">
                        <div class="zonetwos">
                            <span class="rentit">币种</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">类型</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">投资金额</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">年化率</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">预计收益</span>
                        </div>
                        <div class="zonetwos end">
                            <span class="rentit">订单时间</span>
                        </div>
                        <div class="zonetwos end">
                            <span class="rentit">到期时间</span>
                        </div>
                        <div class="zonetwos end">
                            <span class="rentit">状态</span>
                        </div>

                    </div>
                    <div class="zthead ztitems">
                        <div class="zonetwos center">
                            <img src="@/assets/img/addition/usdt.png" alt="" class="usdticon" />
                            <span class="rentit">USDT</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">活期</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">0.01 ABC</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">0.1%</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">12.001 ABC</span>
                        </div>
                        <div class="zonetwos end">
                            <span class="rentit">2023-01-01</span>
                        </div>
                        <div class="zonetwos end">
                            <span class="rentit">2023-02-01</span>
                        </div>
                        <div class="zonetwos end">
                            <span class="shuhui">赎回</span>
                        </div>

                    </div>
                    <div class="zthead ztitems">
                        <div class="zonetwos center">
                            <img src="@/assets/img/addition/usdt.png" alt="" class="usdticon" />
                            <span class="rentit">USDT</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">活期</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">0.01 ABC</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">0.1%</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">12.001 ABC</span>
                        </div>
                        <div class="zonetwos end">
                            <span class="rentit">2023-01-01</span>
                        </div>
                        <div class="zonetwos end">
                            <span class="rentit">2023-02-01</span>
                        </div>
                        <div class="zonetwos end">
                            <span class="rentit lv">进行中</span>
                        </div>

                    </div>
                    <div class="zthead ztitems">
                        <div class="zonetwos center">
                            <img src="@/assets/img/addition/usdt.png" alt="" class="usdticon" />
                            <span class="rentit">USDT</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">活期</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">0.01 ABC</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">0.1%</span>
                        </div>
                        <div class="zonetwos">
                            <span class="rentit">12.001 ABC</span>
                        </div>
                        <div class="zonetwos end">
                            <span class="rentit">2023-01-01</span>
                        </div>
                        <div class="zonetwos end">
                            <span class="rentit">2023-02-01</span>
                        </div>
                        <div class="zonetwos end">
                            <span class="rentit">已完成</span>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
  
<script>
import { ref } from 'vue';
import Meun from "@/components/menu/meun.vue";
import ziHead from '@/views/property/components/ziHead.vue';
export default {
    name: "Invest",
    components: { ziHead },
    data() {
        return {
            modal1: false,
            ishead:1,
            iseye:false,
            istou:1
        };
    },
    mounted() {
        // autofit.init({
        //   dh: 950,
        //   dw: 1200,
        //   el: "#app",
        //   resize: true
        // });
        // let devicewidth = document.documentElement.clientWidth//获取当前分辨率下的可是区域宽度
        //   let scale = devicewidth / 1920 // 分母——设计稿的尺寸
        //   document.body.style.zoom = scale//放大缩小相应倍数
        // },
    },
    setup() {
    },
    methods:{
        toggleMode(e){
            // console.log(e)
            this.ishead = e
        },
        istouClick(e){
            this.istou = e
        }
    }
};
//   const ishead = ref('0');
//   const toggleMode = (e) => {
//     ishead.value = e;
//   };
</script>
  
<style lang="scss" scoped>
.zicontent{
    padding: 20px 20%;
    display: flex;
    flex-direction: column;
    .zione{
        display: flex;
        flex-direction: row;
        .zioneleft{
            border: 1px solid #EEEEEE;
            border-radius: 4px;
            padding:30px  21px;
            // width: 520px;
            width: 100%;
            .zleftone{
                display: flex;
                flex-direction: row;
                align-items: center;
                .touview{
                    display: flex;
                    flex-direction: column;

                }
                .touone{
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                }
                // width: 100%;
                .zongtit{
                    font-size: 18px;
                    font-family: Source Han Sans CN;
                    font-weight: 400;
                    color: #111111;
                    display: inline-block;
                    margin-right: 10px;
                }
                .yan{
                    width: 19px;
                    height: 12px;
                    cursor: pointer;
                }
                .zoneright{
                    margin-left: auto;
                    display: flex;
                    flex-direction: column;
                    .shoutit{
                        font-size: 14px;
                        font-family: Source Han Sans CN;
                        font-weight: 400;
                        color: #999999;
                        display: block;
                        margin-bottom: 6px;
                    }
                    .shoutit:last-child{
                        margin-bottom: 0;
                    }
                    .lv{
                        color: #27C27B;
                    }
                }
            }
            .znum{
                font-size: 27px;
                font-family: Source Han Sans CN;
                font-weight: bold;
                color: #111111;
                display: block;
                margin: 9px 0 0px;
                .znums{
                    font-size: 19px;
                    font-weight: 400;
                    display: inline-block;
                    margin-left: 5px;
                }
            }
            .zjia{
                display: flex;
                flex-direction: row;
                align-items: center;
                .jianum{
                    font-size: 16px;
                    font-family: Source Han Sans CN;
                    font-weight: 400;
                    color: #D04963;
                }
                .bannian{
                    display: inline-block;
                    color: #8B8B8B;
                    margin-left: 5px;
                }
                .zhouview{
                    margin-left: auto;
                    width: 190px;
                    height: 32px;
                    background: #F0F0F0;
                    border-radius: 4px;
                    padding: 3px;
                    display: flex;
                    flex-direction: row;
                    cursor: pointer;
                    .zhouitem{
                        width: 25%;
                        height: 100%;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        font-size: 11px;
                        font-family: Source Han Sans CN;
                        font-weight: 400;
                        color: #030000;
                    }
                    .zhactive{
                        background: #FFFFFF;
                        border-radius: 4px;
                        font-weight: 400;
                        color: #030000;
                    }
                }
            }
            .kxian{
                height: 200px;
            }
        }
       
    }

    .zitwo{
        // border: 1px solid #EEEEEE;
        border-radius: 3px;
        margin-top: 27px;
        .zitwotit{
            font-size: 16px;
            font-family: Source Han Sans CN;
            font-weight: 400;
            color: #000000;
            // margin: 15px 0;
            // padding: 15px 24px;
            border-bottom: 1px solid #EEEEEE;
            display: flex;
            flex-direction: row;
            .ztwoitems{
                height: 100%;
                margin-right: 30px;
                font-size: 15px;
                font-family: Source Han Sans CN;
                font-weight: 500;
                color: #999999;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                padding: 16px 0;
                cursor: pointer;
            }
            .renxian{
                position: absolute;
                width: 100%;
                bottom: 0;
                left: 0;
                height: 1px;
                background: #030000;
                display: none;
            }

            .ztacitve{
                font-weight: 500;
                color: #000000;
                .renxian{
                    display: inline-block;

                }
            }
        }
        .ztlist{
            // padding:0 15px;
            padding: 30px 0;
            .zthead{
                display: flex;
                flex-direction: row;
                margin-bottom: 38px;
                .zones{
                    width: 25%;
                    display: flex;
                    flex-direction: row;
                }
                .zonetwos{
                    width: 12.5%;
                    display: flex;
                    flex-direction: row;
                }
                .end{
                    justify-content: flex-end;
                    .rentit{
                        padding-right: 3px;
                    }
                }
                .rentit{
                    font-size: 13px;
                    font-family: Source Han Sans CN;
                    font-weight: 400;
                    color: #8B8B8B;
                }
                .hong{
                    font-weight: 400;
                    color: #EF5252 !important;
                }
                .usdticon{
                    width: 14px;
                    height: 14px;
                    margin-right: 5px;
                }
                .center{
                    align-items: center;
                }
                .shuhui{
                    width: 47px;
                    height: 23px;
                    border: 1px solid #030000;
                    border-radius: 12px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 9px;
                    font-family: Source Han Sans CN;
                    font-weight: 400;
                    color: #000000;
                }
                .lv{
                    color: #31BD65 !important;
                }
            }
            .ztitems{
                display: flex;
                flex-direction: row;
                align-items: center;
                .rentit{
                    font-size: 14px;
                    font-family: Source Han Sans CN;
                    font-weight: 400;
                    color: #000000;
                }
                .end{
                    justify-content: flex-end;
                    .rentit{
                        padding-right: 0px;
                    }
                }
            }
            .ztitems:last-child{
                border-bottom: none;
            }
        }
    }
}
.xiaclass{
    position: relative;
    top: 4px !important;
}
</style>